{% extends 'partials/base.html' %}
{% block title %}主 页{% endblock %}

{% block content %}
{% if request.user.is_authenticated and user.is_staff and user.is_superuser %}
{% include 'partials/topside.html' %}
<div class="row ">
    <div class="col-md-6 my-4">
        <div class="bg-white" style="opacity: 0.9;">
            <div class="card-body">
                <canvas id="myChart1" width="400" height="500"></canvas>
                
            </div>
        </div>
    </div>
    <div class="col-md-6 my-4">
        <div class="bg-white" style="opacity: 0.9;">
            <div class="card-body">
                <canvas id="myChart" width="400" height="500"></canvas>
                
            </div>
        </div>
    </div>
</div>
{% else%}
{% include 'dashboard/staff_index.html' %}
{%  endif %}
{% endblock %}